# coding: utf-8
from . import db, BaseModel


class Administrator(db.Model):
    __tablename__ = 'administrator'

    auto_id = db.Column(db.Integer, primary_key=True)
    administrator_id = db.Column(db.BigInteger, index=True, info='管理员账号')
    password = db.Column(db.String(255), info='密码')
    administrator_name = db.Column(db.String(255), info='管理员名称')
    avatar = db.Column(db.LargeBinary, info='头像')
    phone = db.Column(db.String(11), info='联系方式')
    is_delete = db.Column(db.Integer, server_default=db.FetchedValue())
    update_time = db.Column(db.DateTime, server_default=db.FetchedValue())
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue())
